package com.lsc.jiujia.controller;

import com.lsc.jiujia.entity.ParamEntity;
import com.lsc.jiujia.service.PlayService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping( "/spike")
public class SpikeController {

    @Autowired
    private PlayService playService;

    @RequestMapping("/play")
    public String play(@RequestBody ParamEntity param){

        return playService.play(param);
    }

    @RequestMapping("/test")
    public String testSql(){
        log.info("进入方法 ");
        return playService.testSql();
    }

}
